AutoSizeDialog
NEW WITH THE APPEARANCE MANAGER
Automatically resizes static text fields and their dialog boxes to accommodate changed static text.
pascal OSErr AutoSizeDialog (DialogPtr inDialog);
inDialog
- A pointer to a dialog structure.
- function result
- A result code; see "Result Codes".
DISCUSSION
TheAutoSizeDialog
function is useful in situations such as localization, where the size of a static text field (and the dialog box that contains it) may need to be altered to accommodate an alteration in the size of the static text.For each static text item
AutoSizeDialog
finds in the item list resource, it adjusts the static text field and the bottom of the dialog box window to accommodate the text. Any items below a static text field are moved down. If the dialog box is visible when this function is called, it is hidden, resized, and then shown. If the dialog box has enough room to show the text as is, no resizing is done.SEE ALSO
"Appearance Manager Gestalt Selector Constants".